package com.example.jdbc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Repository
public class OtherTestTxService {
    @Autowired
    private TestTxDao txDao;

    @Transactional
    public void testTx() {
        txDao.t3();
        txDao.t4();
        //int i = 1/0;
    }
}
